<?php

namespace app\api\controller;

use app\api\service\NotifyService;
use app\common\service\CommonService;
use app\models\ContractModel;
use app\models\ReceivablesModel;
use app\models\StudentModel;
use think\Log;
use think\Db;

/**
 * 支付回调
 * User: wufeng
 * Date: 2019/4/11.
 */
class Notify extends Common
{
	/**
	 * 随行付支付回调
	 * User: wufeng
	 * Date: 2019/4/17
	 * Time: 0:18
	 *
	 * @return bool|string
	 * @throws \think\exception\DbException
	 */
	public function sxfNotify()
	{
		return (new NotifyService())->sxfNotify();
	}

	/**
	 * 随行付申请退款回调
	 * User: wufeng
	 * Date: 2019/4/18
	 *
	 * @return bool|string
	 * @throws \think\exception\DbException
	 */
	public function refundNotify()
	{
		return (new NotifyService())->refundNotify();
	}

	/**
	 * 微信扫码支付回调-后台
	 * User: wufeng
	 * Date: 2020/04/16
	 *
	 * @return bool|string
	 * @throws \think\exception\DbException
	 */
	public function czwxsmNotify()
	{
		return (new NotifyService())->czwxsmNotify();
	}
	public function ddwxsmNotify()
	{
		return (new NotifyService())->ddwxsmNotify();
	}

	/**
	 * 微信小程序扫码支付回调-储值
	 * User: wufeng
	 * Date: 2020/04/25
	 *
	 * @return bool|string
	 * @throws \think\exception\DbException
	 */
	public function czxcxsmNotify()
	{
		return (new NotifyService())->czxcxsmNotify();
	}

	/**
	 * 微信小程序扫码支付回调-订单
	 * User: wufeng
	 * Date: 2020/04/25
	 *
	 * @return bool|string
	 * @throws \think\exception\DbException
	 */
	public function ddxcxsmNotify()
	{
		return (new NotifyService())->ddxcxsmNotify();
	}
}
